using System;
using System.Diagnostics;

namespace OpenRay
{
	public class TriangleHit : Hit
	{
		private float[] interpolationData = new float[3];
		
		public TriangleHit ( Primitive p, Ray r, float d, float[] interp )
			: base( p, r, d )
		{
			Debug.Assert( interp.Length >= 3, "TriangleHit: Interpolation data array is too short" );
			Array.Copy( interp, interpolationData, 3 );
		}
	}
}

